import request from '@u/request'

// 项目月报-获取项目月报列表
export function queryMonthReport(params) {
  return request({
    url: '/project/month/plan/query',
    method: 'get',
    params,
  })
}

// 项目月报-获取项目月报详情
export function getMonthReport(params) {
  return request({
    url: '/project/month/plan/get',
    method: 'get',
    params,
  })
}

// 项目月报-获取上月项目月报详情
export function getLastMonthReport(params) {
  return request({
    url: '/project/month/plan/get/last/month',
    method: 'get',
    params,
  })
}

// 项目月报-新增项目月报
export function addMonthReport(data) {
  return request({
    url: '/project/month/plan/addOrUpdate',
    method: 'post',
    data,
  })
}

// 项目月报-删除项目月报
export function deleteMonthReport(pkid) {
  return request({
    url: '/project/month/plan/delete?pkid=' + pkid,
    method: 'delete',
  })
}
